package io.github.talelin.latticy.service;

import java.math.BigDecimal;

/**
 * @authoer:wulongbo
 * @createDate:2022/8/23
 * @description:
 */
public interface AccuracyService {

    /**
     * @param amount
     * @param price
     * @param min
     * @param max
     * @param accuracy ROUND_DOWN:1 向下取整 ; ROUND_CEILING:2 ; 向上取整 ROUND_HALF_UP:4 四舍五入
`     * @return
     */
    BigDecimal thresholdLimit(Integer amount, String price, String min, String max, Integer accuracy);


}
